<html><head>
<title>XML Flash Changer</title>
<style type="text/css">
TABLE 		{ COLOR: #000000; FONT: 10px verdana, arial, sans-serif; font-weight: normal }
.title 		{ color: #000000; font: 17px arial, verdana, sans-serif; font-weight: bold }

.selectcopy {
color: #006A6A;
background-color: #D8FEFA;
border: 1px solid #009999;
width: 225px;
FONT: 11px verdana, arial, sans-serif;
font-weight: normal;
margin-bottom: 4px; }
.textareacode {
FONT: 11px arial, verdana, sans-serif;
text-align: left;
WIDTH: 650PX;
background-color:#F0F0F0;
BORDER: #000000 1px solid; }


</style>

<script language="JavaScript" type="text/javascript">
function copyit(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")
}
</script> 


</head>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0">


<TABLE cellpadding="10" cellspacing="10" border="0" WIDTH="620"><tr><td valign="top">

<a href="help-XML_changer.html">Return to the help page</a><br><br>

<SPAN CLASS="title">XML Flash changer .JS File Code</span><br>
The code below is for adding the changer to a template .js file like your sidebar.js or menu.js. See step #2 on the <a href="help-XML_changer.html">help page</a> to add the changer to an HTML page instead.
<br><br>

The code for .js files can also be copied from the "image_changer_XML.js" included in this download.

<br><br><br>



<script language="JavaScript" type="text/javascript" src="image_changer_XML.js"></script>





<br><br>

<SPAN CLASS="title">FOR .JS FILES ONLY</span><br>
Right click and choose "select all" in the box below, choose copy from the edit menu, open your .js file like the sidebar.js or menu.js and choose to paste this code into that file:<br><br>

<form name="selecting1" style="margin: 0px">
<input onclick="copyit('selecting1.copyselect1')" type="button" value="Click to select all (also copies in IE)" name="copybutton" class="selectcopy"><br>
<TEXTAREA NAME="copyselect1" ROWS="35" COLS="55" wrap="soft" class="textareacode">
// START XML FLASH CHANGER

// XML CHANGER VARIABLES YOU CAN EDIT - ALSO EDIT THE image_changer.xml

var XMLshowsflash	= "yes"		// SHOW FLASH XML CHANGER
var XMLflashcolor	= "FFFFFF"	// FLASH XML BACKGROUND COLOR
var XMLflashwidth	= "150"		// WIDTH OF THE FLASH (IN PIXELS) (and adjust the menu.js)
var XMLflashheight	= "150"		// HEIGHT OF THE FLASH (IN PIXELS) (and adjust the menu.js)
var XMLborder		= "000000"	// SCROLLER AND IMAGE BORDER COLOR

// XML CHANGER SUPPORT: - http://www.allwebco-templates.com/support/S_flash_image_changerXML-ADDON.htm


   if (XMLshowsflash == "yes") {
document.write('<TABLE cellpadding="0" cellspacing="0" border="1" bordercolor="#'+XMLborder+'" style="border-collapse:collapse"><tr><td>');
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+XMLflashwidth+'" HEIGHT="'+XMLflashheight+'" id="image_changer_XML">');
document.write('<PARAM NAME="movie" VALUE="image_changer_XML.swf">');
document.write('<PARAM NAME="quality" VALUE="high">');
document.write('<PARAM NAME="wmode" VALUE="transparent">');
document.write('<PARAM NAME="bgcolor" VALUE="#'+XMLflashcolor+'">');
document.write('<EMBED src="image_changer_XML.swf" quality="high" wmode="transparent" bgcolor="#'+XMLflashcolor+'" WIDTH="'+XMLflashwidth+'" HEIGHT="'+XMLflashheight+'" NAME="image_changer_XML" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write('</EMBED></OBJECT><br>');
document.write('</td></tr></table>');
document.write('<br><br>');
}

// END XML FLASH CHANGER

</TEXTAREA>
</form>


</td></tr></table>




</BODY>
</HTML>
